/**
 * Created by LIUBA2 on 8/25/2016.
 */
const mongoose = require("mongoose");
const Order = mongoose.model("order");

exports.wsForAdminComplaint = function (req, res) {
    Order.findOne({_id: req.params.oId}, function (err, order) {
        if (!err) {
            res.json(order);
        }
        else {
            res.json({error: "WS 从C端获取订单失败"});
        }
    })
}